package top.zywork.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.zywork.dao.SuggestionDAO;
import top.zywork.dos.SuggestionDO;
import top.zywork.dto.SuggestionDTO;
import top.zywork.service.AbstractBaseService;
import top.zywork.service.SuggestionService;

import javax.annotation.PostConstruct;

/**
 * SuggestionServiceImpl服务接口实现类<br/>
 *
 * 创建于2020-04-23<br/>
 *
 * @author http://zywork.top 涂梅城
 * @version 1.0
 */
@Service(value = "suggestionService")
public class SuggestionServiceImpl extends AbstractBaseService implements SuggestionService {

    private SuggestionDAO suggestionDAO;

    @Autowired
    public void setSuggestionDAO(SuggestionDAO suggestionDAO) {
        super.setBaseDAO(suggestionDAO);
        this.suggestionDAO = suggestionDAO;
    }

    @PostConstruct
    public void init() {
        super.init(SuggestionDO.class, SuggestionDTO.class);
    }
}